package cn.gjculture.shopping.api.entity;

import lombok.Data;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

@Data
public class Goods extends Commodity {
   private String goodsTypeId;
   private Integer inventory;
   private String unit;
   private Integer sales;
   private Integer count;
   private List<String> goodsStands;
   private List<String> goodsColors;
   private String supplierId;
   private String brandId;
   //推荐
   private Integer recommended;
   private Integer activityType=0;

   private List<Activity> activities=new ArrayList<>();



   public Goods(){
      this.setCommodityType(CommodityType.GOODS.getValue());
   }


   public enum ActivityType{
      DISCOUNT_COUPON(1);

      @Getter
      private Integer value;

      ActivityType(Integer value){
         this.value=value;
      }
   }

}
